﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Diablo3.Engine;

namespace Diablo3.Window
{
    public partial class NewItems : Form
    {
        public ItemsType ItemsType { get; set; }

        public NewItems()
        {
            InitializeComponent();
        }

        private void btnHead_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Head;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnShoulders_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Shoulders;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnRings_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Rings;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnHands_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Hands;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnTorso_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Torso;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnWaist_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Waist;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnWrists_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Wrists;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnAmuletsLeft_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.AmuletsLeft;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnWeapons_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Weapons;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnLegs_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Legs;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnFeet_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.Feet;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnOffHand_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.OffHand;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnAmuletsRight_Click(object sender, EventArgs e)
        {
            ItemsType = Engine.ItemsType.AmuletsRight;
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
